package main

import (
	"fmt"
	"time"
)

func main() {

	ch3 := make(chan int, 3)
	ch4 := make(chan int, 3)
	go func() {
		time.Sleep(time.Second)
		ch3 <- 100
	}()

	go func() {
		time.Sleep(time.Second)
		ch4 <- 200
	}()

	select {
	case num1 := <-ch3:
		fmt.Println("num1", num1)
	case num2 := <-ch4:
		fmt.Println("num2", num2)
		/*default:
		fmt.Println("我先执行")*/

	}

}
